import { Button, Result } from 'antd';
import React from 'react';
import { formatMessage } from 'umi-plugin-react/locale';
import router from 'umi/router';

const Exception500 = () => (
  <Result
    status="500"
    title="500"
    subTitle={formatMessage({ id: 'app.exception.description.500' })}
    extra={<Button type="primary" onClick={() => router.push('/')}>{formatMessage({ id: 'app.exception.back' })}</Button>}
  />
);

export default Exception500;
